package org.lc.stk.service.question.impl;

import org.lc.stk.service.question.EssayQuestionService;
import org.lc.stk.web.dto.question.EssayQuestionDTO;
import org.springframework.stereotype.Service;

@Service
public class EssayQuestionServiceImpl
    extends BaseQuestionServiceImpl<EssayQuestionDTO>
    implements EssayQuestionService {

    @Override
    public boolean validateReferenceAnswer(String answer) {
        // 简答题参考答案验证逻辑
        return !answer.isBlank();
    }

    @Override
    public boolean validateScoringCriteria(String criteria) {
        // 评分标准验证逻辑
        return criteria != null && criteria.length() > 10;
    }

    @Override
    public boolean validateKeywords(String[] keywords) {
        // 关键词验证逻辑
        return keywords != null && keywords.length >= 3;
    }
}